package com.gopay.common.domain.rcs;

import com.gopay.common.domain.BaseEntity;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * CLASSNAME:RcUserLoginMacDtl
 * Description:限制恶意登陆实体表
 * DATE:2017/6/23/023
 * AUTHER:PANSHICHAO
 * www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "RC_USER_LOGIN_MAC_DTL")
public class RcUserLoginMacDtl extends BaseEntity{
    private String dtlInfo;
    private String custId;
    private String userId;
    private String mac;
    private String ip;
    private String lockType;
    private int errorCount;
    private String loginStat;
    private String lastOperId;
    private String unLockReason;
    private Date createTs;
    private Date lastUpdTs;
    private int version;
    @Id
    @GenericGenerator(name="systemUUID",strategy="uuid")
    @GeneratedValue(generator="systemUUID")
    @Column(name = "DTL_ID", insertable = true, updatable = true, nullable = false)
    public String getDtlInfo() {
        return dtlInfo;
    }

    public void setDtlInfo(String dtlInfo) {
        this.dtlInfo = dtlInfo;
    }
    @Basic
    @Column(name = "CUST_ID")
    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }
    @Basic
    @Column(name = "USER_ID")
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    @Basic
    @Column(name = "MAC")
    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }
    @Basic
    @Column(name = "IP")
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
    @Basic
    @Column(name = "LOCK_STAT")
    public String getLockType() {
        return lockType;
    }

    public void setLockType(String lockType) {
        this.lockType = lockType;
    }
    @Basic
    @Column(name = "ERROR_COUNT")
    public int getErrorCount() {
        return errorCount;
    }

    public void setErrorCount(int errorCount) {
        this.errorCount = errorCount;
    }
    @Basic
    @Column(name = "LOGIN_STAT")
    public String getLoginStat() {
        return loginStat;
    }

    public void setLoginStat(String loginStat) {
        this.loginStat = loginStat;
    }
    @Basic
    @Column(name = "LAST_OPER_ID")
    public String getLastOperId() {
        return lastOperId;
    }

    public void setLastOperId(String lastOperId) {
        this.lastOperId = lastOperId;
    }
    @Basic
    @Column(name = "UNLOCK_REASON")
    public String getUnLockReason() {
        return unLockReason;
    }

    public void setUnLockReason(String unLockReason) {
        this.unLockReason = unLockReason;
    }
    @Basic
    @Column(name = "CREATED_TS")
    public Date getCreateTs() {
        return createTs;
    }

    public void setCreateTs(Date createTs) {
        this.createTs = createTs;
    }
    @Basic
    @Column(name = "LAST_UPD_TS")
    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }
    @Basic
    @Column(name = "VERSION")
    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }
}
